public class College {
    private List<Building> buildings = new ArrayList<>();
    private List<Course> courses = new ArrayList<>();
    private String collegeName;
    public College(String collegeName) {
        this.collegeName = collegeName;
    }
    public void addCourse(Course course) {
        if (course != null && !courses.contains(course)) {
            courses.add(course);
        }
    }
    public void removeCourse(Course course) {
        courses.remove(course);
    }
    public List<Building> getBuildings() {
        return new ArrayList<>(buildings); 
    }
    public List<Course> getCourses() {
        return new ArrayList<>(courses);
    }
    public void setCollegeName(String collegeName) {
        this.collegeName = collegeName;
    }
    public String getCollegeName() {
        return collegeName;
    }
}

public class Course {
    private String courseName;
    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }
    public String getCourseName() {
        return courseName;
    }
}
public class Building {
    private String address;
    public void setAddress(String address) {
        this.address = address;
    }
     public String getAddress() {
        return address;
    }
}
